﻿/****************************** Module Header ******************************\
 * Module Name:  tFinanceRecharge.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 财务-资金管理-充值 数据实体类
    /// </summary>
    [DBTable(Common = "财务-资金管理-充值")]
    public class tFinanceRecharge
    {
        /// <summary>
        /// 流水号
        /// </summary>
        public string SerialNo { get { return _SerialNo; } set { _SerialNo = value; } }

        [DBColumn(Alias = "流水号", Length = "32", IsKey = true)]
        private string _SerialNo;

        /// <summary>
        /// 充值金额
        /// </summary>
        public decimal Amount { get { return _Amount ?? default(decimal); } set { _Amount = value; } }

        [DBColumn(Alias = "充值金额", DefaultValue = "0.00")]
        private decimal? _Amount;

        /// <summary>
        /// 充值类型
        /// </summary>
        public short TransactionType { get { return _TransactionType ?? default(short); } set { _TransactionType = value; } }

        [DBColumn(Alias = "充值类型")]
        private short? _TransactionType;

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", Length = "32")]
        private string _UserName;

        /// <summary>
        /// 管理员帐号
        /// </summary>
        public string AdminName { get { return _AdminName; } set { _AdminName = value; } }

        [DBColumn(Alias = "管理员帐号", Length = "32")]
        private string _AdminName;

        /// <summary>
        /// 用户备注
        /// </summary>
        public string UserRemark { get { return _UserRemark; } set { _UserRemark = value; } }

        [DBColumn(Alias = "用户备注", CanBeNull = true, Length = "255")]
        private string _UserRemark;

        /// <summary>
        /// 管理员备注
        /// </summary>
        public string AdminRemark { get { return _AdminRemark; } set { _AdminRemark = value; } }

        [DBColumn(Alias = "管理员备注", CanBeNull = true, Length = "255")]
        private string _AdminRemark;

        /// <summary>
        /// 银行交易流水号
        /// </summary>
        public string BankTransactionSN { get { return _BankTransactionSN; } set { _BankTransactionSN = value; } }

        [DBColumn(Alias = "银行交易流水号", CanBeNull = true, Length = "32")]
        private string _BankTransactionSN;

        /// <summary>
        /// 银行卡卡号
        /// </summary>
        public string BankCardID { get { return _BankCardID; } set { _BankCardID = value; } }

        [DBColumn(Alias = "银行卡卡号", CanBeNull = true, Length = "32")]
        private string _BankCardID;

        /// <summary>
        /// 银行卡持有人名称
        /// </summary>
        public string BankCardHolder { get { return _BankCardHolder; } set { _BankCardHolder = value; } }

        [DBColumn(Alias = "银行卡持有人名称", CanBeNull = true, Length = "32")]
        private string _BankCardHolder;

        /// <summary>
        /// 开户银行名称
        /// </summary>
        public string BankName { get { return _BankName; } set { _BankName = value; } }

        [DBColumn(Alias = "开户银行名称", CanBeNull = true, Length = "32")]
        private string _BankName;

        /// <summary>
        /// 审核状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "审核状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "最后更新时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

        [DBColumn(Alias = "是否删除", DefaultValue = "0")]
        private bool? _IsDeleted;

        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

        [DBColumn(Alias = "网站标签", CanBeNull = true, Length = "16")]
        private string _SiteTag;

    }
}